import 'package:json_annotation/json_annotation.dart';

part 'UserInfo.g.dart';

@JsonSerializable()
class UserInfo {
  String? name;
  int? sex;
  String? userImg;
  String? mobile;
  String? email;
  String? crmId;
  int? isCustomerService;
  int? invitedType;
  String? company;
  int? isRelation;
  String? userNameId;
  String? internationalAreaCode;

  UserInfo(
      {this.name,
      this.sex,
      this.userImg,
      this.mobile,
      this.email,
      this.crmId,
      this.isCustomerService,
      this.invitedType,
      this.company,
      this.isRelation,
      this.userNameId,
      this.internationalAreaCode});


  /// Connect the generated [_$PersonFromJson] function to the `fromJson`
  /// factory.
  factory UserInfo.fromJson(Map<String, dynamic> json) => _$UserInfoFromJson(json);

  /// Connect the generated [_$PersonToJson] function to the `toJson` method.
  Map<String, dynamic> toJson() => _$UserInfoToJson(this);

  @override
  String toString() {
    return 'UserInfo{name: $name, sex: $sex, userImg: $userImg, mobile: $mobile, email: $email, crmId: $crmId, isCustomerService: $isCustomerService, invitedType: $invitedType, company: $company, isRelation: $isRelation, userNameId: $userNameId, internationalAreaCode: $internationalAreaCode}';
  }
}
